package bas.item;

import bas.file.FileIO;
import bas.list.CreationRequestList;
import bas.list.DeletionRequestList;

public class Administrator
{
    private String adminId;
    private String adminPw;
    private CreationRequestList creationList;
    private DeletionRequestList deletionList;

    public Administrator(String pw)
    {
        adminId = "admin";
        adminPw = pw;
        FileIO.setLatestAccNum(100000);
    }

    public void CreateAccount()
    {
        String[] creationlist = creationList.getList();
        for(int i = 0; i < creationList.getListLength(); i++)
        {
            FileIO.setAccNum(creationlist[i]);
        }
    }

    public void DeleteAccount()
    {
        String[] deletionlist = deletionList.getList();
        for(int i = 0; i < deletionList.getListLength(); i++)
        {
            FileIO.deleteAcc(deletionlist[i]);
        }
    }
    
    public void displayUserAccount(String id)
    {
        ;
    }
    
    public void modifyPassword(String changePw)
    {
        ;
    }
}
